//author:杨东升，刘江岳
var app = getApp();
const appInstance = getApp();
Page({
  goToChinese: function() {
    wx.navigateTo({
      url: '/pages/chinese/chinese'
    });
  },
  data: {
    wrongQuestions: []
  },

  onLoad: function() {
    
    this.setData({
      wrongQuestions: appInstance.globalData.wrongQuestions
    });
  },
  deleteWrongQuestion: function (event) {
    const index = event.currentTarget.dataset.index;
    app.globalData.wrongQuestions.splice(index, 1);
    this.setData({
      wrongQuestions: appInstance.globalData.wrongQuestions
    });
    //this.setData({ app.globalData.wrongQuestions:  app.globalData.wrongQuestions });
  },
});
